14. 【选修】 Notebook + 练习:其它编码

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

QUIZ QUESTION: :

根据你在上面拟合的两个模型,请在下列解释空白处填写正确的数值。

ANSWER CHOICES:



描述

数值

本空无解,因为这不是任何系数的解释。

33.9

642100

404000

741100

SOLUTION:

描述

数值

本空无解,因为这不是任何系数的解释。

33.9

642100

404000

741100

要用 1、0 编码预测基准类别,你要用到截距;而用 1、0、-1 编码时,你则得让各分类系数分别乘以 -1,从而填补缺失的分类。知道了这一点,请问用 1、0、-1 编码模型预测出来的乡间小屋平均房价是多少?

SOLUTION: 305050